# KJ's simplified stream archiver (kjssar)
# 
# (C)Copyright 2013-2015 by Klaus-J. Wolf, kj (at) seismic (dot) de
# This file is licensed under the General Public License Version 2.
# http://www.gnu.org/licenses/gpl-2.0.html


DEFS= -DUSE_ACL=1 -DUSE_XATTR=1 -DDEBUG=1

LANGDEFS= -Wall -Wno-pointer-sign -D_XOPEN_SOURCE=700 -std=c90 -pthread

CFLAGS= -g $(DEFS) $(LANGDEFS)

SOURCES= dscan.c parlhash.c xat_linux.c kjgetopt.c kjssar.c yabase64.c \
dynmisc.c sysmisc.c

TARGETS= $(addsuffix .o, $(basename $(SOURCES)))

LIBS= -lacl -lmhash


%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@


%.o: %.cc
	$(CXX) -c $(CXXFLAGS) $< -o $@


all: $(TARGETS)

##############################################################################

add: clean
	git add *.c *.h Makefile

ci: add
	git ci

keywords:
	git-keyw-filter *.c *.h Makefile

push:
	git push --all https://code.google.com/p/uup/

##############################################################################

clean:
	rm -f *.o core
